package com.supply;

/**
 * @author : wushikai
 * <p>
 * date : 2021/8/10
 */
public class ArrayClassDemo {


    /**
     * 八大基本类型的数组  getClass
     * [Z = boolean
     * [B = byte
     * [S = short
     * [I = int
     * [J = long
     * [F = float
     * [D = double
     * [C = char
     * 其他类型 数组  getClass()
     * [L = any non-primitives(Object)
     *
     * */
    public static void main(String[] args) {

        String []  strs = {"1", "2"};

        System.out.println(strs.getClass());   //class [Ljava.lang.String;

        String str = "Linux";
        System.out.println(str.getClass());


        Float[] floats =  {1.2F, 2.1F};
        System.out.println(floats.getClass() );


        Integer[] ints = {1, 2};
        System.out.println(ints.getClass());

        Integer integer = 1;
        System.out.println(integer.getClass() );




        int []  ints1 = {2, 3};
        System.out.println(ints1.getClass());

        float []  floats1 = {2.1F, 3.1F};
        System.out.println(floats1.getClass());

        double [] dous = {2.2, 3.3};
        System.out.println(dous.getClass() );


        long [] longs = {3L, 32L};
        System.out.println(longs.getClass()  );

        char [] chas = { '2', '艹'};

        System.out.println(chas.getClass() );

        byte [] bytes = {-128,  2, 127};
        System.out.println(bytes.getClass() );


        boolean [] bools = {true , false , };
        System.out.println(bools.getClass()  );


    }

}
